package com.sunny.ynhz.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.sunny.ynhz.R;
import com.sunny.ynhz.app.SNNApplication;
import com.sunny.ynhz.ui.base.AppBaseTranslationTitleBarActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/7/15/015.
 */

public class ProblemDeilActivity extends AppBaseTranslationTitleBarActivity {
    @BindView(R.id.ty_1)
    View ty_1;
    @BindView(R.id.ty_2)
    View ty_2;
    @BindView(R.id.ty_3)
    View ty_3;
    @BindView(R.id.ty_4)
    View ty_4;
    @BindView(R.id.line_view)
    View line_view;
    @BindView(R.id.iamge1)
    ImageView iamge1;
    @BindView(R.id.iamge2)
    ImageView iamge2;
    @BindView(R.id.iamge3)
    ImageView iamge3;
    @BindView(R.id.iamge4)
    ImageView iamge4;
    @BindView(R.id.iamge5)
    ImageView iamge5;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.problem_dcl);
        ButterKnife.bind(this);
        int type = SNNApplication.type;
        switch (type) {
            case 1:
                ty_1.setVisibility(View.VISIBLE);
                break;
            case 2:
                ty_2.setVisibility(View.VISIBLE);
                break;
            case 3:
                ty_3.setVisibility(View.VISIBLE);
                break;
            case 4:
                ty_4.setVisibility(View.VISIBLE);
                break;
            case 5:
                line_view.setVisibility(View.INVISIBLE);
                break;


        }
    }

    @OnClick({R.id.iamge1, R.id.iamge2, R.id.iamge3, R.id.iamge4, R.id.iamge5})
    public void onClick() {
        Intent intent = new Intent(this,ImageActivity.class);
        intent.putExtra("pic_path", R.mipmap.ic_1);
        startActivity(intent);
    }
}